<?php
namespace app\admin\validate;

use think\Validate;

class ThridApp extends Validate
{
    protected $rule = [
        'app_id|number' => 'require',
        'app_secret' => 'require|length:16,32',
        'scope' => 'require',
    ];

    protected $message = [
        'app_id.require' => '请输入第三方ID',
        'app_secret.require' => '请输入第三方秘钥,16至32个字符',
        'scope.require' => '请输入权限'
    ];
}